package utils

import (
	"fmt"
	"math/rand"
	"strconv"
	"time"
)

func RandNum(len int) string {
	format := "%0"+strconv.Itoa(len)+"v"
	return fmt.Sprintf(format, rand.New(rand.NewSource(time.Now().UnixNano())).Int31n(int32(10*len)))
}
